﻿<Page x:Class="PFC.Program.Profile.Pages.CreateWallet"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:local="clr-namespace:PFC.Program.Profile.Pages"
      mc:Ignorable="d" 
      d:DesignHeight="400" d:DesignWidth="800"
      Title="CreateWallet">

    <Grid Background="#FFFF8000">


        <StackPanel Orientation="Vertical">

            <GroupBox Header="|Создание кошелька|"
                      Style="{DynamicResource GroupBoxStyle}"
                      Width="175"
                      Height="160"
                      HorizontalAlignment="Center"
                      VerticalAlignment="Top"
                      Margin="0 70 0 0">

                <Grid>

                    <!--Сетка для элементов в GroupBox-->
                    <Grid.RowDefinitions>
                        <RowDefinition Height="70"/>
                        <RowDefinition Height="*"/>
                    </Grid.RowDefinitions>

                    <!--Название-->
                    <TextBlock Grid.Row="0"
                               HorizontalAlignment="Left"   
                               Text="Название"
                               FontSize="15"
                               VerticalAlignment="Top"
                               Background="Gray"
                               Padding="3 0 3 0"
                               Foreground="White"
                               Margin="22,12,0,0" Width="67" Height="18"/>

                    <TextBox Name="nameWallet_Txb"
                             Grid.Row="0"
                             Style="{DynamicResource TextBoxStyle}"
                             HorizontalAlignment="Center" 
                             VerticalAlignment="Top" 
                             MaxLength="50"
                             Margin="0,30,0,0" 
                             TextChanged="nameWallet_Txb_TextChanged">
                        
                        <TextBox.Resources>
                            <Style TargetType="Border">
                                <Setter Property="CornerRadius" Value="0 5 5 5"/>
                            </Style>
                        </TextBox.Resources>
                        
                    </TextBox>

                    <!--Баланс-->
                    <TextBlock Grid.Row="1"
                               HorizontalAlignment="Left"   
                               Text="Баланс" 
                               Foreground="White"
                               Background="Gray"
                               Padding="3 0 3 0"
                               FontSize="15"
                               VerticalAlignment="Top" 
                               Margin="22,7,0,0"/>

                    <TextBox Name="balance_Txb"
                             Grid.Row="1"    
                             Style="{DynamicResource TextBoxStyle}"
                             HorizontalAlignment="Center" 
                             VerticalAlignment="Top"
                             MaxLength="50"
                             Margin="0,25,0,0" 
                             KeyDown="balance_Txb_KeyDown">

                        <TextBox.Resources>
                            <Style TargetType="Border">
                                <Setter Property="CornerRadius" Value="0 5 5 5"/>
                            </Style>
                        </TextBox.Resources>

                    </TextBox>
                </Grid>

            </GroupBox>

            <!--Кнопки для выхода и создания-->
            <WrapPanel Orientation="Horizontal"
                       HorizontalAlignment="Center"
                       Margin="5">
                
                <Button Name="back_Btn"
                        Style="{DynamicResource ButtonStyle}"
                        Width="80"
                        Height="35"
                        Content="Назад"
                        Margin="5" 
                        Click="back_Btn_Click"/>

                <Button Name="createWallet_Btn"
                        Style="{DynamicResource ButtonStyle}"
                        Width="80"
                        Height="35"
                        Content="Создать"
                        Margin="5" 
                        Click="createWallet_Btn_Click"/>
            </WrapPanel>

        </StackPanel>

    </Grid>
</Page>
